
package net.swa.dewei.beans.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;

/**电池车型关系信息表**/

@Entity
@Table(name = "t_Battery_CheXing")
public class BatteryCheXingRelation
{
    //PK
    private Long id;

    /**电池id**/
    private Long dianchiId;

    /**车型id**/
    private Long chexingId;

    @GenericGenerator(name = "generator", strategy = "native")
    @Id
    @GeneratedValue(generator = "generator")
    @Column(name = "id", unique = true, nullable = false)
    public Long getId()
    {
        return id;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getDianchiId()
    {
        return dianchiId;
    }

    public void setDianchiId(Long dianchiId)
    {
        this.dianchiId = dianchiId;
    }

    public Long getChexingId()
    {
        return chexingId;
    }

    public void setChexingId(Long chexingId)
    {
        this.chexingId = chexingId;
    }

}